cat out.txt | grep "error" > out_err.txt